home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / Overlay.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-25  |  2.2 KB  |  95 lines

  1. /* OGroup.h    by Paul Kunz    March 1991
  2.  * Group of Plot graphics that overlay each other.
  3.  *
  4.  * Copyright (C)  1992  The Board of Trustees of
  5.  * The Leland Stanford Junior University.  All Rights Reserved.
  6.  */
  7.  
  8. #define OVERLAY_H_ID "$Id: Overlay.h,v 1.3 1992/04/22 00:21:54 pfkeb Rel $"
  9.  
  10. #import "Group.h"
  11.  
  12. @interface Overlay : Group
  13. {
  14.     id        firstPlot;    /* Controling Plot of the Group, */
  15.     NXRect    initialRect;    /* NXRect covering initial Plot's bounds*/
  16. }
  17.  
  18. - initList:list with:plot;
  19.  /*
  20.   * The designated initializer for the class. The plot is the one that
  21.   * will control the axes and titles.  Overlays other Plots in 
  22.   * the Group and turns off their axes labels and titles.
  23.   */
  24.  
  25. - (NXRect *) getInitialBounds:(NXRect *)initBounds;
  26.  /*
  27.   * Returns, by reference, the inital bounds which covered all the Plots in
  28.   * the group.
  29.   */
  30. - checkBounds;
  31.  /*
  32.   * Checks if bounding box is within the DrawDocuments frame.   If
  33.   * not, move the bounding box so that it is contained in the frame.
  34.   */
  35.   
  36. - transferSubGraphicsTo:list at:(int)position;
  37.  /*
  38.   * Turns on the axes labels and titles of all Plots in the
  39.   * Group, then uses its super class method of the same name.
  40.   */   
  41.  
  42. - firstPlot;
  43.  /*
  44.   * Returns the controlling plot of the Group.
  45.   */
  46.   
  47. - NameAxisX:(const char *) value;
  48.  /*
  49.   * Sets the label of the x-axis of the controling Plot in the Group.
  50.   */
  51.  
  52. - NameAxisY:(const char *) value;
  53.  /*
  54.   * Sets the label of the y-axis of the controling Plot in the Group.
  55.   */
  56.  
  57. - setAutoScaleX:(const int *) value;
  58.  /*
  59.   * Responds to the autoscale being turned on by scaling the
  60.   * x-axis of all Plots in the Group so all data is visible
  61.   */
  62.   
  63. - setAutoScaleY:(const int *) value;
  64.  /*
  65.   * Responds to autoscale being turned on by scaling the
  66.   * y-axis of all Plots in the Group so all data is visible.
  67.   */
  68.   
  69. - setRangeForAxisY:(NXPoint *) value;
  70.  /*
  71.   * Sets range on y-axis for all Plots in the overlay group.
  72.   */
  73.   
  74. - setTitle:(const char *) value;
  75.  /*
  76.   * Sets the title of the controling Plot in the Group.
  77.   */
  78.   
  79. - setTitlesFlag:(const int *) value;
  80.  /*
  81.   * Sets the titles flag of the controling Plot in the Group.
  82.   */
  83.  
  84. - write:(NXTypedStream *) ts;
  85.  /*
  86.   * An archiving method.
  87.   */
  88.  
  89. - read:(NXTypedStream *)ts;
  90.  /*
  91.   * An archiving method.  
  92.   */
  93.  
  94. @end
  95.